﻿using AutoMapper;
using MyModels.Models;
using MyModels.ViewModels;


namespace MyExtension.AutoMapper
{
    public class CustomProfile:Profile
    {
        public CustomProfile()
        {
            CreateMap<SysUserInfo, UserDto>().ReverseMap();
            CreateMap<Role, RoleDto>().ReverseMap();

            CreateMap<Permission, PermissionDto>().ReverseMap();
        }
    }
}
